import {put, takeEvery,delay } from 'redux-saga/effects'
import * as TYPES from './action-types';

function* working(action) {
    yield delay(1000)
    yield put({
        type: TYPES.DEMO,
        payload: action.payload
    })
}
function* sage() {

    yield takeEvery(TYPES.DEMO + '@SAGA@', working)
}
export default sage